package com.carefree.system.modules.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carefree.system.modules.admin.entity.MenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单
 *
 * @author tengbin
 */
@Mapper
public interface MenuDao extends BaseMapper<MenuEntity> {

    /**
     * 根据用户id查询该用户所拥有的所有菜单信息
     *
     * @param userId 用户id
     * @return
     */
    List<MenuEntity> selectMenusByUserId(@Param("userId") Long userId);

}
